const path = require('path');

module.exports = {
  lintOnSave: false,
  publicPath: process.env.VUE_APP_PUBLIC_PATH,
  configureWebpack: {
    devtool: process.env.NODE_ENV === 'development' ? 'eval-source-map' : false,
    resolve: {
      alias: {
        components: path.resolve(__dirname, 'src/components'),
        modules: path.resolve(__dirname, 'src/modules'),
        api: path.resolve(__dirname, 'src/api'),
      },
      extensions: ['.js', '.scss', '.vue']
    },
    plugins: [
    ]
  },
  css: {
    loaderOptions: {
      sass: {
        includePaths: [
          '.',
          path.resolve(__dirname, 'src/styles/'),
          path.resolve(__dirname, 'node_modules')
        ]
      }
    }
  },
  devServer: {
    port: 2331
  }
}
